// const baseUrl = 'https://ppe.dingdian.xin';//测试
// const baseUrl = 'https://api.dingdian.xin';//线上
// const baseUrl1 = 'http://dingdian.parllay.cn';
//const baseUrl = 'http://192.168.22.168:8080';
export const qiniuBaseUrl = 'https://goods.dingdian.xin/'
export const qiniuVideoBaseUrl = 'https://video.dingdian.xin/'

//获取七牛云接口
//export const getQiniuToken = '/wxserver/imgUpload/upload';
//获取七牛云接口（上传图片获取token）
export const getQiniuToken = '/ddaigo-platform/multiMedia/uploadImg';
//获取七牛云接口（上传视频获取token）
export const getQiniuTokenVideo = '/ddaigo-platform/multiMedia/uploadVideo';

//重置密码
export const updateEmploye = '/wxserver/uemploye/updateEmploye';
//获取店员信息
export const getEmployeById = '/wxserver/uemploye/getEmployeById';
// // 查询分类id
export const getCategory = '/wxserver/category/getCategory';


// ------------------------------------------------------------------------
// 登录
export const login = '/ddaigo-platform/user/login'
// 获取仓库分页列表
export const storeList = '/ddaigo-platform/store/storeList'
//新增仓库
export const addStore = '/ddaigo-platform/store/addStore';
// 获取仓库详情
export const getStoreById = '/ddaigo-platform/store/getStoreById'
// 获取门店详情
export const getStoreByStroreNo = '/ddaigo-platform/store/getStoreByStroreNo'
// 编辑仓库详情
export const editStore = '/ddaigo-platform/store/editStore'

// 获取品牌
export const getBrand = '/ddaigo-platform/store/getBrand'
// 新增用户
export const addUser = '/ddaigo-platform/user/addUser'
// 获取仓库
export const getStores = '/ddaigo-platform//store/getStores'
// 检查用户名是否可用
export const checkUerName = '/ddaigo-platform/user/checkUerName'
// 获取用户列表
export const listUser = '/ddaigo-platform/user/listUser'
// 获取仓库用户列表
export const listUserByStoreNo = '/ddaigo-platform/user/listUserByStoreNo'
// 根据id查询用户详情
export const getUserById = '/ddaigo-platform/user/getUserById'
// 修改用户信息
export const updateUser = '/ddaigo-platform/user/updateUser'


//获取门店商品列表
export const getStockGoodsList = '/ddaigo-platform/goods/getStockGoodsList';
//新增商品
export const addGoods = '/ddaigo-platform/goods/addGoods';
// 新的新增商品
export const addMultiGoods = '/ddaigo-platform/goods/addMultiGoods';
//获取商品信息
export const getGoodsById = '/ddaigo-platform/goods/getGoodsById';

// 获取商品信息
export const getGoodsByRelation = '/ddaigo-platform/goods/getGoodsByRelation';
//编辑商品信息
export const updateGoods = '/ddaigo-platform/goods/updateGoods';
// 新的更新商品信息
export const updateRelationGoods = '/ddaigo-platform/goods/updateRelationGoods';
//商品列表编辑
export const editGoodsByPc = '/ddaigo-platform/goods/editGoodsByPc';

// 获取订单列表
export const getOrderList = '/ddaigo-platform/order/listForManage';
// 获取订单详情
export const getOrderDetail = '/ddaigo-platform/order/detailList';
// 导出订单
export const getActivityOrderData = '/ddaigo-platform/statistics/getActivityOrderData';
// 删除订单
export const deleteOrder = '/ddaigo-platform/order/delete';
// 更改订单状态
export const updateOrderLogisticStatus = '/ddaigo-platform/order/updateOrderLogisticStatus';
// 创建订单运单
export const createLogistics = '/ddaigo-platform/order/createLogistics';
// 根据id获取邮寄地址
export const getUserAddressById = '/ddaigo-platform/user/getUserAddressById';
// 获取二维码
export const getCode = '/ddaigo-platform/tool/getQRCode_wxProgram';
// 申请退款
export const updateDetailRefundFlag = '/ddaigo-platform/order/updateDetailRefundFlag';
// 申请退款
export const getRefund = '/ddaigo-platform/refund/refund';

// 获取活动列表(添加商品)
//export const activityList = '/ddaigo-platform/activity/activityList';
export const allActivityList = '/ddaigo-platform/activity/admin/allActivityList'; //(新接口)
//获取活动列表（按状态查询活动列表）
export const activityList = '/ddaigo-platform/activity/admin/activityList'; //(新接口)
//添加活动
export const addActivity = '/ddaigo-platform/activity/addActivity';
//编辑活动
export const editActivity = '/ddaigo-platform/activity/editActivity';
//根据id获取活动详情
export const getActivityDetail = '/ddaigo-platform/activity/getActivityDetail';
//根据id获取活动商品列表
export const getActivityGoodsList = '/ddaigo-platform/activity/getActivityGoodsList';
// 获取品牌列表
export const getBrandList = '/ddaigo-platform/brand/getBrandList';
// 新增品牌
export const addBrand = '/ddaigo-platform/brand/addBrand';
// 编辑品牌
export const editBrand = '/ddaigo-platform/brand/editBrand';
// 根据id获取品牌
export const getBrandById = '/ddaigo-platform/brand/getBrandById';
//订单统计
export const getSalesAndPriceData = '/ddaigo-platform/statistics/getSalesAndPriceData';
// 获取运单详情
export const getLogistics = '/ddaigo-platform/order/getLogistics';
//退款审核
export const refundAudit = '/ddaigo-platform/refund/refundAudit';
//查询订单
export const orderForManage = '/ddaigo-platform/order/orderForManage';
//邀请码列表
export const codeList = '/ddaigo-platform/code/getCode';
//生成
export const createCode = '/ddaigo-platform/code/createCode';
//轮播列表
export const getBannerList = '/ddaigo-platform/banner/getBannerList';
//查询轮播
export const getBannerById = '/ddaigo-platform/banner/getBannerById';
//修改轮播
export const editBanner = '/ddaigo-platform/banner/editBanner';
//修改轮播
export const addBanner = '/ddaigo-platform/banner/addBanner';
//删除轮播
export const delBanner = '/ddaigo-platform/banner/delBanner';
//优惠券列表
export const getCouponList = '/ddaigo-platform/coupon/listForManage';
//创建优惠券
export const createCoupon = '/ddaigo-platform/coupon/create';
//获取优惠券详情
export const getCouponById = '/ddaigo-platform/coupon/getCouponById';
//修改优惠券
export const modifyCoupon = '/ddaigo-platform/coupon/modify';
//渠道管理
//获取渠道列表
export const channelList = '/ddaigo-platform/channel/channelList';
//新增渠道
export const addChannel = '/ddaigo-platform/channel/addChannel';
//编辑渠道
export const editChannel = '/ddaigo-platform/channel/editChannel';
//获取渠道信息
export const getChannel = '/ddaigo-platform/channel/getChannel';
//获取店铺列表
export const getStoreList = '/ddaigo-platform/store/storeList';
//代购礼包列表
export const getGiftPackList = '/ddaigo-platform/gift/getGiftPackList';
//新增代购礼包
export const addGiftPack = '/ddaigo-platform/gift/addGiftPack';
//编辑代购礼包
export const editGiftPack = '/ddaigo-platform/gift/editGiftPack';
//添加视频
export const goodsVideo = '/ddaigo-platform/goods/goodsVideo';
//获取视频列表
export const goodsVideoList = '/ddaigo-platform/goods/goodsVideoList';
//获取视频信息
export const getVideoInfo = '/ddaigo-platform/goods/getVideoInfo';
//删除视频
export const removeGoodsVideo = '/ddaigo-platform/goods/removeGoodsVideo';
//修改运单
export const modifyLogistics = '/ddaigo-platform/order/modifyLogistics';
//获取客户端用户列表
export const searchUser = '/ddaigo-platform/airdrop/searchUser';
//设置用户
export const airdropRole = '/ddaigo-platform/airdrop/airdropRole';
//申请提现记录列表
export const getWithdrawRecordListForManage = '/ddaigo-platform/withdrawRecord/getWithdrawRecordListForManage';
//更改提现审核状态
export const approveWithdrawRecord = '/ddaigo-platform/withdrawRecord/approveWithdrawRecord';
//获取非普通用户
export const getUnCommonUserList = '/ddaigo-platform/pullmember/getUnCommonUserList';
//获取直属会员
export const getUnderMemberList = '/ddaigo-platform/pullmember/getUnderMemberList';
//使用会员
export const useMemberHead = '/ddaigo-platform/pullmember/useMemberHead';
//设置活动运费
export const editActivityPostage = '/ddaigo-platform/activity/editActivityPostage';
//查看活动运费
export const getActivityPostageByActivityId = '/ddaigo-platform/activity/getActivityPostageByActivityId';
//线下自提
export const offlineOrderDetail = '/ddaigo-platform/order/offlineOrderDetail';
//获取活动商品列表新
export const activityGoodsForPc = '/ddaigo-platform/activity/activityGoodsForPc';
//导入表格
export const addGoodsByExcel = '/ddaigo-platform/fileupload/addGoodsByExcel';
//下载文件
export const downloadExcel = '/ddaigo-platform/fileupload/downloadExcel';
//获取用户
export const getUsersForBindCoupon = '/ddaigo-platform/coupon/getUsersForBindCoupon';
//恢复订单优惠券
export const restoreUserCoupons = '/ddaigo-platform/coupon/restoreUserCoupons';